package face.pay.open.user;

import face.pay.open.user.service.IApiUserRegService;
import face.pay.open.util.request.ErrorCode;
import face.pay.util.ResultMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zkj
 * @Date: 2019/8/27 17:03
 * @Description:
 */
@RestController
@RequestMapping("/user")
public class UserRegisterController {

    @Autowired
    private IApiUserRegService iApiUserRegService;


    @RequestMapping("/register")
    public ResultMessage register(@RequestBody String json){

        return  iApiUserRegService.register(json);

    }

}
